'use strict'

// 管理模块
export default [
  {
    path: '/host',
    component: () => import('../../main.vue'),
    redirect: '/host',
    children: [{
        path: '',
        name: 'host-index',
        component: () => import('../../pages/host/index.vue'),
        meta: {
          title: '企业客户管理'
        }
      },
      {
        path: 'orgInfo',
        name: 'org-info',
        component: () => import('../../pages/host/modules/info.vue'),
        meta: {
          title: '组织信息'
        }
      },
      {
        path: 'menu',
        name: 'host-menu',
        component: () => import('../../pages/host/modules/menu.vue'),
        meta: {
          title: '菜单配置'
        }
      },
      {
        path: 'station',
        name: 'host-station',
        component: () => import('../../pages/host/modules/station.vue'),
        meta: {
          title: '权限配置'
        }
      },
      {
        path: 'personnel',
        name: 'host-personnel',
        component: () => import('../../pages/host/modules/personnel.vue'),
        meta: {
          title: '人员管理'
        }
      },
      {
        path: 'tag',
        name: 'host-tag',
        component: () => import('../../pages/host/modules/tag.vue'),
        meta: {
          title: '人员标签'
        }
      },
      {
        path: 'dimission',
        name: 'host-dimission',
        component: () => import('../../pages/host/modules/dimission.vue'),
        meta: {
          title: '帐号管理'
        }
      },
      {
        path: 'log',
        name: 'host-log',
        component: () => import('../../pages/host/modules/log.vue'),
        meta: {
          title: '操作日志'
        }
      },
      {
        path: 'errlog',
        name: 'err-log',
        component: () => import('../../pages/host/modules/errlog.vue'),
        meta: {
          title: '接口日志'
        }
      },
      {
        path: 'dataConfiguration',
        name: 'data-configuration',
        component: () => import('../../pages/host/modules/dataConfiguration.vue'),
        meta: {
          title: '数据配置'
        }
      },
      {
        path: 'projectManage',
        name: 'project-manage',
        component: () => import('../../../businessAssets/pages/projectInfo/index.vue'),
        meta: {
          title: '项目管理'
        }
      },
      {
        path: 'buildManage',
        name: 'build-manage',
        component: () => import('../../../businessAssets/pages/projectInfo/buildList.vue'),
        meta: {
          title: '楼栋管理'
        }
      }
    ]
  },
  {
    path: '/flow',
    component: () => import('../../main.vue'),
    children: [
      {
        path: '',
        name: 'flowManage',
        component: () => import('../../pages/process/index.vue'),
        meta: {
          title: '流程管理'
        }
      },
      {
        path: 'info',
        name: 'flow-info',
        component: () => import('../../pages/process/detail.vue'),
        meta: {
          title: '流程信息',
          independentTab:true
        }
      },
      {
        path: 'formInfo',
        name: 'form-info',
        component: () => import('../../pages/process/formInfo.vue'),
        meta: {
          title: '表单信息',
          independentTab:true
        }
      },
      {
        path: 'infoTabs/ccManageDetil',
        name: 'manageDetil',
        component: () => import('../../pages/process/infoTabs/ccManageDetil.vue'),
        meta: {
          title: '抄送管理',
          independentTab:true
        }
      },
    ]
  },
  {
    path: '/processForm',
    component: () => import('../../main.vue'),
    children: [
      {
        path: '',
        name: 'flowProcessForm',
        component: () => import('../../pages/processForm/index.vue'),
        meta: {
          title: '流程表单'
        }
      }, {
        path: 'detail',
        name: 'process-form-detail',
        component: () => import('../../pages/processForm/detail.vue'),
        meta: {
          title: '表单详情',
          independentTab:true
        }
      }
    ]
  },
  {
    path: '/personStructure',
    component: () => import('../../main.vue'),
    children: [
      {
        path: '',
        name: 'flowPersonStructure',
        component: () => import('../../pages/personStructure/index.vue'),
        meta: {
          title: '人员结构'
        }
      }, {
        path: 'detail',
        name: 'person-structure-detail',
        component: () => import('../../pages/personStructure/detai.vue'),
        meta: {
          title: '人员结构详情',
          independentTab:true
        }
      }
    ]
  },
  {
    path: '/config',
    component: () => import('../../customMain.vue'),
    redirect: '/config/center',
    children: [{
      path: 'center',
      name: 'config-center',
      component: () => import('../../pages/enterpriseConfig/index.vue'),
      meta: {
        title: '配置中心'
      }
    }]
  }
]
